var app = sm("do_App");
var page = sm("do_Page");
var imHelper = require("helper/im");
var easemob = sm("do_Easemob");

page.on("loaded",function(){
	var userId = page.getData().userId;
	imHelper.loadUserByUserId(userId,function(imUser){
		imUser.type="Chat";
		page.fire({name:"transport", data:imUser});
	});
	
})